package com.tuanzi.loan.vo.response.receipt.user;

import java.util.Date;

import com.tuanzi.loan.core.vo.IdentityResponse;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Ray 2017/09/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ReceiptSystemUserSearchResponse extends IdentityResponse {

	private String name;

	private String account;

	private String email;

	private String phone;

	private String organization;

	private String parent;

	private Date lastLoginTime;

	private Integer status;

	private String weChat;

	public boolean isNormal() {
		return status == 0;
	}

	public boolean isDisabled() {
		return status == 3;
	}

	public boolean isApproving() {
		return status == 1;
	}

	public boolean isLocked() {
		return status == 2;
	}

	public boolean isReject() {
		return status == 4;
	}

}
